import "reflect-metadata"
import {  RequestHandler } from 'express';
import { CorllerController, LoginController} from '../controller/index'

export function use(middleware: RequestHandler) {
    return function (target: CorllerController|LoginController, key: string) {
        Reflect.defineMetadata('middleware', middleware, target, key)
    }
}